import com.tongdun.service.DemoService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * Created by zhiyuan on 16/7/14.
 */
public class App {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext =
                new ClassPathXmlApplicationContext(new String[]{"demo-consumer-app.xml"});
        applicationContext.start();
        DemoService bean = (DemoService) applicationContext.getBean("demoService");
        System.out.println(bean.sayHello("robin-fei"));
    }
}
